package cn.z2huo.knowledge.streamapi.optional;

import java.util.Optional;

/**
 * <p>
 *
 * @author z2huo
 */
class OptionalTest3 {

    public static void main(String[] args) {

        System.out.println(Optional.of("string").get());

        String string = null;
        String result = Optional.ofNullable(string).get();
        System.out.println(result);
    }

}
